
<%@page import="com.teach.entity.user"%>
<%@page import="com.teach.service.impl.Const"%>
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<jsp:include page="head.jsp" />
	</head>
	<body>
	<a href="admin/news-list.let">新闻列表</a><br/>
	<a href="admin/user-list.let">用户列表</a><br/>
	<%
		user u = (user)session.getAttribute(Const.LOGIN_USER_SESSION_NAME); 
		if(u==null){
	%>
	<a href="login.jsp">登录</a><br/>
	<a href="reg.jsp">注册</a><br/>
	<%} else { %>
	<%=u.getNickname() %>(<%=u.getName() %>) <a href="javascript:void(0);" class="_exit">退出</a>
	<%} %>
	<hr/>
	<a href="aa.jsp">jsp的异常处理</a><br/>
	<a href="lkasdjfklasdjflasdkjpdfjkg;alsdkjf">404错误页面</a><br/>
	<a href="login-1.jsp">登录 - 错误的统一处理</a><br/>
	<h2>Cookie</h2>
	<a href="demo/add-cookie.jsp">设置Cookie</a>
	<a href="demo/get-cookie.jsp">获取Cookie</a>
	<h2>session</h2>
	<a href="demo/session-1.jsp">会话演示</a>
	<h2>aplication(SerlvetContext)</h2>
	<a href="demo/application.jsp">上下文演示</a>
	</body>
</html>
